package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.entity.StockLogDo;
import com.cloudkinto.extentity.StockLogDto;
import com.cloudkinto.extentity.StockRecordDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 张永远
 * @since 2020-06-10
 */
@Mapper
public interface StockLogDao extends BaseMapper<StockLogDo> {
    List<StockLogDto> getDifferenceTime(List<StockRecordDto> recordList);

    int selectInTotalCount(Long storageId, Long shopId, Long productInfoId, String commoditySku, String createTime);

    int selectLogTotalCount(Long storageId, Long shopId, Long productInfoId, String commoditySku, int type, String createTime, String endDate);

}
